package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtWStrategicProtocol;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略采购协议 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
@Component
@Mapper
public interface ExtWStrategicProtocolMapper extends BaseMapper<ExtWStrategicProtocol> {
    List<ExtWStrategicProtocol> getByIds(Map<String,Object> ids);
    List<ExtWStrategicProtocol> getEffectByEntity(ExtWStrategicProtocol wStrategicProtocol);
    List<ExtWStrategicProtocol> getEffectPageByEntity(Page<ExtWStrategicProtocol> page, ExtWStrategicProtocol wStrategicProtocol);
    
	long searchStrategicProtocolListCount(Map<String, Object> map);
	
	List<ExtWStrategicProtocol> searchStrategicProtocolList(Map<String, Object> map);
	
	ExtWStrategicProtocol selectExtById(@Param("id") String id);

    List<ExtWStrategicProtocol> findWStrategicProtocolByStrategicProtocolSynId(Map<String, Object> map);
 }
